<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page contentType="text/html; charset=gb2312"%>
<%@page import="com.tss.util.*"%>
<%@page import="com.store.*"%>
<%@page import="java.util.*"%>
<%@include file="../global_var.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String salename   	= ParamUtils.getParameter(request,"salename","");//销售员姓名
List list=null;
String saletel		= ParamUtils.getParameter(request,"saletel","");//电话
String salemail   = ParamUtils.getParameter(request,"salemail","");//E-mail
int comid   = Integer.parseInt( ParamUtils.getParameter(request,"comid","0"));// 代理商id
int comsaleid=Integer.parseInt( ParamUtils.getParameter(request,"comsaleid","0"));// 代理商销售id

  CompanySaleMgr comsaleMgr = new CompanySaleMgr();
  
String strErr = "";
Companysale comsale= new Companysale();
CompanyMgr comMgr = new CompanyMgr();
if (comsaleid !=0){
comsale = comsaleMgr.getSaleInfo(comsaleid);
}else{
  strErr=" 厂商销售信息没有找到";
	
}
Company company =comMgr.getComInfo(comsale.getComid());
String remark = ParamUtils.getParameter(request,"remark","");

%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    
<title></title>
    
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    
   <link href="style/main.css" rel="stylesheet" type="text/css">
<script language="javascript" src="js/common.js"></script>
<script language="javascript">
function chk_submit() {
	var oForm = document.operatorForm;
	oForm.cmd.value = "insert";
	return true;
}

function clk_goback() {
	history.back();
}
</script>
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
.STYLE3 {color: #000000}
-->
</style>
</head>
<body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="98%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td >
      <form name="operatorForm" method="post" onSubmit="return chk_submit();">
      <table width="98%" border="0" cellspacing="0" cellpadding="0">
       
      
        <tr> 
          <td height="100" align="center" valign="top" style="padding-top:10px;padding-bottom:10px;">
            <table width="96%" border="0" cellpadding="1" cellspacing="1" bgcolor="#000000">
               
            <%if (!strErr.trim().equals("")) {%>
             
              <tr> 
                <td height="24" colspan="2" bgcolor="#D7D7DB" style="padding-left:10px;">
                  错误提示：<font color=red><%=strErr%></font>                </td>
              </tr>
              <%}%>
            <tr> 
                <td height="24" colspan="2" bgcolor="#858585" style="padding-left:10px;">
                  <font color="#FFFFFF"><strong>代理商销售信息</strong></font>                </td>
              </tr>
              <tr>
                <td width="20%" height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;"><span class="STYLE1">*</span>销售员姓名：</td>
                <td width="80%" bgcolor="#EDEDF0" style="padding-left:5px;">
            <%=comsale.getSalename()%>
                </td>
              </tr>
              <tr>
                <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;">销售员电话：</td>
                <td bgcolor="#EDEDF0" style="padding-left:5px;">
                  <%=comsale.getSaletel()%>
               </td>
              </tr>
              <tr> 
                <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;">Email：</td>
                <td bgcolor="#EDEDF0" style="padding-left:5px;">
                  <%=comsale.getSalemail()%>
               </td>
              </tr>
               <tr> 
                <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;">所属代理商名称：</td>
                <td bgcolor="#EDEDF0" style="padding-left:5px;">
                 <%=company.getComnam()%>
          </td>
             </tr>
              <tr> 
                <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;">备注：</td>
                <td bgcolor="#EDEDF0" style="padding-left:5px;">
              <%=comsale.getRemark()%>
            </td>
              </tr>
              <tr> 
                <td bgcolor="#EDEDF0" colspan="2" align="center">
                  <input type="button" onclick="clk_goback();" name="btn" value="返　回" class="inputButton"> 
                  <input type="hidden" name="cmd" value="">                  </td>
              </tr>
            </table>
          </td>
        </tr>
    
      </table>
          </form>
    </td>
  </tr>
</table>
<iframe width="168" height="190" name="gToday:normal:agenda.js" id="gToday:normal:agenda.js"
			src="calendar/ipopeng.htm" scrolling="no" frameborder="0" style="BORDER-RIGHT:2px ridge; BORDER-TOP:2px ridge; Z-INDEX:999; LEFT:-500px; VISIBILITY:visible; BORDER-LEFT:2px ridge; BORDER-BOTTOM:2px ridge; POSITION:absolute; TOP:0px">
		</iframe>

</body>
</html>
